<?php
/**
 * @Author: liuhongbin
 * @Email: 514660094@qq.com
 * @Date: 2019-02-12 16:15:10
 * @Description:
 * @LastEditors: liuhongbin
 * @LastEditTime: xxx
 */

namespace app\common\controller;

/**
 * 抖音控制器的基础类
 * @package app\common\controller
 * User: liuhongbin
 * Date: 2021-06-14 16:28
 */

use think\App;

abstract class DouyinController extends BaseController
{
    protected $notLogin = ['*'];
    protected $notCheck = ['*'];

    protected $visit_type = "index";

    public function __construct(App $app)
    {
        parent::__construct($app);
        $this->view->config([
            'layout_on'   => true,
            'layout_name' => 'v1/douyin/layout/default'
        ]);
    }

    /**
     * 当前控制器路由
     * @param $controller
     * @param string $action
     * @param array $vars
     * @return string
     */
    public function url($controller, $action = 'index', $vars = [])
    {
        return $this->douyinUrl($controller, $action, $vars);
    }
}
